import request from '@/utils/request'

// 查询用药建议
export function suggestAuditList(query) {
  return request({
    url: '/suggest/audit/list',
    method: 'get',
    params: query
  })
}

// 修改基因药物建议
export function updateSuggestAudit(data) {
  return request({
    url: '/suggest/audit/update',
    method: 'post',
    data: data
  })
}

// 添加基因药物建议
export function addDrugSuggest(data) {
  return request({
    url: '/suggest/addDrugSuggest',
    method: 'post',
    data: data
  })
}

// 查询用药建议
export function RuleConfigList(query) {
  return request({
    url: '/suggest/queryRuleConfigList',
    method: 'get',
    params: query
  })
}

// 修改基因药物建议
export function updateRuleConfig(data) {
  return request({
    url: '/suggest/updateRuleConfig',
    method: 'post',
    data: data
  })
}

// 添加基因药物建议
export function addRuleConfig(data) {
  return request({
    url: '/suggest/addRuleConfig',
    method: 'post',
    data: data
  })
}

// 查询用药建议
export function RuleGroupList(query) {
  return request({
    url: '/suggest/queryRuleGroupList',
    method: 'get',
    params: query
  })
}

// 修改基因药物建议
export function updateRuleGroup(data) {
  return request({
    url: '/suggest/updateRuleGroup',
    method: 'post',
    data: data
  })
}

// 添加基因药物建议
export function addRuleGroup(data) {
  return request({
    url: '/suggest/addRuleGroup',
    method: 'post',
    data: data
  })
}
